var app = new Vue({
	el: "#sidebar",
	data: {
		tlist: getTypeAll()
	},
	methods: {
		getHerf(name){
			return "list.html?name="+name
		}
	}
})

function getTypeAll() {
	var tlist
	$.ajax({
		url: "http://101.37.77.75:8080/lagouwang/TypeServlet?type=getTypeAll",
		dataType: "json",
		async: false,
		success: function(data) {
			tlist = data.data
		}
	})
	return tlist
}
var app1 = new Vue({
	el: "#app1",
	data: {
		tlist1: getTypeAll1()
	},
	methods: {
		getHerf(name){
			return "list.html?name="+name
		}
	}
})

function getTypeAll1() {
	var tlist1
	$.ajax({
		url: "http://101.37.77.75:8080/lagouwang/TypeServlet?type=getTypeAll",
		dataType: "json",
		async: false,
		success: function(data) {
			tlist1 = data.data
		}
	})
	return tlist1
}

var app2 = new Vue({
	el: "#hotList",
	data: {
		ilist: getIssueAndCompany()
	},
	methods: {
		getHerf(name){
			return "list.html?name="+name
		},
		jumpURL(url) {
			return href = url
		}
	}
})

function getIssueAndCompany() {
	var ilist
	$.ajax({
		url: "http://101.37.77.75:8080/lagouwang/lssueServlet?type=getIssueAndCompany",
		dataType: "json",
		async: false,
		success: function(data) {
			ilist = data.data
		}
	})
	return ilist
}